<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
	<ui:composition>
		<h:panelGrid columns="3" width="10%">
			<h:outputLabel value="#{msg.charterNumber}"/>
			<p:inputText id="charterNumber" 
				value="#{charter.charterNumber}" 
				onkeypress="if(event.which &lt; 48 || event.which &gt; 57) return false;"
				maxlength="3"/>
			<p:message for="charterNumber" display="icon"/> 
		
			<h:outputLabel value="#{msg.charterType}" />
			<p:selectOneMenu id="charterType"
				value="#{manageBean.selectedCharted}">
				<f:selectItems value="#{manageBean.charterTypes}" />
			</p:selectOneMenu>
			<p:message for="charterType" display="icon"/> 

			<h:outputLabel value="#{msg.charterPatent}" />
			<p:inputMask id="patent" value="#{charter.patent}"
				maxlength="6" mask="aaa999" />
			<p:message for="patent" display="icon"/> 

			<h:outputLabel value="#{msg.charterAvailability}" />
			<p:inputText id="places" 
				value="#{charter.places}" 
				onkeypress="if(event.which &lt; 48 || event.which &gt; 57) return false;"
				maxlength="3"/>
			<p:message for="places" display="icon"/> 
			
			<h:outputLabel value="#{msg.charterKilometers}" />
			<p:inputText id="kilometers" value="#{charter.kilometers}" 
				onkeypress="if(event.which &lt; 48 || event.which &gt; 57) return false;" 
				maxlength="6"/>
			<p:message for="kilometers" display="icon"/> 
			
			<h:outputLabel value="#{msg.charterObservations}" />
			<p:inputTextarea rows="12" cols="75" id="obs"
				value="#{charter.observation}" required="false" maxlength="100" autoResize="false"/>
			<p:message for="obs" display="icon"/> 
			
			<h:outputLabel value="#{msg.charterDate}" />
			<p:calendar value="#{charter.start}" id="inlineCal" requiredMessage="#{msg.requiredDate}" pattern="dd/MM/yyyy" showOn="button" readOnlyInputText="true">
				<f:convertDateTime pattern="dd/MM/yyyy" timeZone="GMT-3"/>
			</p:calendar>
			<p:message for="inlineCal" display="icon"/> 
		</h:panelGrid>

	</ui:composition>
</h:body>
</html>
